502 PRINT"The first step in weekly processing is":PRINT"creating a weekly game file. Select #1":PRINT"on the menu. Enter the current week #":PRINT"of your pool, then approve the dates":PRINT"for the week by entering Y. You may"
504 PRINT"then select Pro, College, Other, or":PRINT"All games for that week. At the next":PRINT"phase, all games selected are shown,":PRINT"and you may delete specific games.":PRINT
506 PRINT"When you continue to the final set-up":PRINT"phase, if you are playing a line game":PRINT"you will be prompted to enter lines if":PRINT"you know what they are at that time.":PRINT
508 PRINT"Once you set-up a weekly file, the data":PRINT"for the past week, except for point":PRINT"totals, is erased."
510 GOSUB 960
512 PRINT"Menu item #2 is to print forms with the":PRINT"games for the week, instructions for":PRINT"the pool, and special instructions":PRINT"which may be added to the form. You":PRINT"must have a printer available to use":PRINT"this option.":PRINT
514 PRINT"When you've collected some forms with":PRINT"picks, you may go into the player data":PRINT"entry (#3) section to enter them.":PRINT
516 PRINT"Item #4 is weekly game file mainten-":PRINT"ance. It is used to enter the scores":PRINT"and lines for the games of the week and":PRINT"also to make corrections. All scores":PRINT"for the week must be in before you can"
518 PRINT"run the final phase, point computation.":PRINT:GOSUB 960
520 PRINT"Item #5 calculates the total won/loss":PRINT"or points for each player for the week.":PRINT"You can then print a ranked list of all":PRINT"players by week totals. You have the":PRINT"option of rolling the weekly totals"
521 PRINT"into the YTD totals in the player file.":PRINT
522 PRINT"Don't add or delete any teams from the":PRINT"TEAMS file while they are playing in":PRINT"an active weekly file - this will make":PRINT"the weekly file invalid and you will":PRINT"have to start from scratch for the":PRINT"week."
524 PRINT:PRINT"There is help information on most sub-":PRINT"menus for weekly processing.":GOSUB 960
950 RETURN
960 LOCATE 25,1:PRINT"Hit any key to continue";:GOSUB 1400:CLS:RETURN
1000 REM wksetup program pc-pooler:setup weekly game file, delete selected games
1045 IF WKFILE=0 THEN 1080
1046 PRINT:PRINT
1050 PRINT"Before proceeding, please hit Y to let":PRINT"the last week's data be overwritten.":PRINT:PRINT"All final processing must be complete.":PRINT:PRINT"Hit any other letter to cancel.":GOSUB 1400
1071 IF A$="H" OR A$="h" THEN GOSUB 1880:ELSE GOTO 1070
1080 CLS
1100 LOCATE 1,1:PRINT"Enter this week's number":LOCATE 3,1:PRINT"or: press enter to cancel":LOCATE 4,5:PRINT"H for Help":LOCATE 6,5:INPUT"===>";A$:WKNO%=VAL(A$):IF WKNO%=0 THEN 1071:ELSE IF (WKNO%<1)OR(WKNO%>52) THEN 1100
1880 CLS:PRINT" Help Information":PRINT" Weekly Game Setup":PRINT:PRINT"This module is used to set-up a weekly":PRINT"game file.":PRINT
1890 PRINT"You narrow down the master game list by":PRINT"specifying a week number and a team":PRINT"type if desired. The weekly file is":PRINT"assembled and made available for other":PRINT"changes using the game delete option."
1900 PRINT:PRINT"You may delete any game in the subset.":PRINT"After you've examined the weekly file":PRINT"thoroughly, you may continue to the":PRINT"next phase by hitting F1 (C).":GOSUB 2370
1910 PRINT"If you`re using line values in your":PRINT"weekly game, you will be prompted for":PRINT"lines for those games that do not have":PRINT"them.":PRINT
1920 PRINT"When this cycle is complete, the weekly":PRINT"schedule will be saved on disk.":PRINT"You may update scores and lines":PRINT"in weekly game maintenance.":GOSUB 2370:GOLDTOP=-1:RETURN
1930 CHNG=0:PTR2=1:IF LIN$="N" THEN RETURN
1940 FOR Q=1 TO NG
1950 IF GM%(5,Q)<>0 THEN 2090
1960 CLS:PRINT"Home:";RIGHT$(TEAM$(GM%(1,Q)),20)
1970 PRINT"Visitor:";RIGHT$(TEAM$(GM%(2,Q)),20)
1980 PRINT:PRINT"Hit H to favor HOME,"
1990 PRINT" V to favor VISITOR,"
2000 PRINT" or any other letter to continue."
2010 GOSUB 1400:IF (C$<>"H")AND(C$<>"V") THEN 2090
2020 LOCATE 10,1:PRINT"By how much";:INPUT A$
2030 LV=VAL(A$):IF C$="H" THEN LV=-LV
2040 LV%=LV*10:GM%(5,Q)=LV%:FOUND=0
2050 WHILE (PTR2<=NG2)AND(FOUND=0)
2060 IF (DT$(Q)<>DT2$(PTR2))OR(GM%(1,Q)<>GM2%(1,PTR2))OR(GM%(2,Q)<>GM2%(2,PTR2))OR(GM2%(5,PTR2)=GM%(5,Q)) THEN 2070:ELSE GM2%(5,PTR2)=GM%(5,Q):CHNG=1:FOUND=1
2070 PTR2=PTR2+1
2080 WEND
2090 NEXT Q
2130 RETURN
2140 REM given wkd$ and wkno% return stt$ and ent$
2150 REM routine to compute dates given week no and start date
2160 DT$=WKD$:NDYS=(WKNO%-1)*7:IF NDYS=0 THEN STT$=WKD$:ELSE GOSUB 2180:STT$=DT2$
2170 DT$=STT$:NDYS=6:GOSUB 2180:ENT$=DT2$:RETURN
2180 REM given dt$ and ndys, return dt2$ so many days later.
4340 PI%=VAL(C$):IF PI%=0 THEN C$=LEFT$(C$,1):GOTO 4355:ELSE IF (PI%<0)OR(PI%>NP) THEN 4330
4350 IF NM$(PI%)=BLNK2$ THEN 4330:ELSE GOSUB 4480
4355 IF (ASC(C$)>=96)AND(ASC(C$)<=122) THEN C$=CHR$(ASC(C$)-32)
4360 IF C$="Q" THEN RETURN
4370 IF C$="F" THEN GTOP=SPOS-1:IF GTOP>NP THEN GTOP=NP:GOLDTOP=-1
4380 IF C$="P" THEN GOSUB 4800
4390 IF C$="B" THEN GTOP=OSPOS-19:IF GTOP<1 THEN GTOP=1:GOLDTOP=-1
4400 IF C$="H" THEN GOSUB 4440
4410 IF GOLDTOP<>GTOP THEN 4180:ELSE 4290
4440 CLS:PRINT" Help Information":PRINT" Weekly Player Data Entry":PRINT
4441 PRINT"This module is used to input picks from":PRINT"returned game forms.":PRINT"Enter the player number to enter/update":PRINT"his/her picks.":PRINT
4450 PRINT"You can quit when you are done with":PRINT"the data entry task by entering Q.":PRINT"You can get a hard copy of all picks":PRINT"using the print command.":PRINT"Specify number of copies."
4460 PRINT:PRINT"Help will display this help screen.":PRINT"You can use the B(Backward and":PRINT"F(forward) commands to":PRINT"look at all player names."
4470 GOSUB 2370:GOLDTOP=-1:RETURN
4480 CLS:PRINT"Data Entry For ";NM$(PI%)
4490 IF PK%(PI%,1)=0 THEN FST=1:PRINT"First Time - Must Enter All Picks":ELSE FST=0:PRINT"Update - Enter Changes Only."
4500 IF CNF$="Y" THEN CON=1:PRINT"Enter confidence factor (1 -";NG;") next":PRINT"to choice. No duplicates allowed.":ELSE CON=0:PRINT"Enter an X by your choice."
4510 PRINT"If home team isn't the pick,":PRINT"just hit ENTER to go to visitor."
4520 PRINT"Enter CLEAR to clear picks."
4530 FOR QG=1 TO NG
4540 LOCATE 12,1:PRINT BLNK$:LOCATE 12,1:PRINT USING " ##";QG;:PRINT". ";RIGHT$(TEAM$(GM%(1,QG)),20);
4570 IF PK%(PI%,QG)>0 THEN LOCATE 12,27:ELSE LOCATE 13,27
4580 IF ABS(PK%(PI%,QG))=999 THEN PRINT "X";:ELSE PRINT USING "##";ABS(PK%(PI%,QG));
4590 CV%=0:LOCATE 12,30:INPUT Q$:IF LEN(Q$)=0 THEN 4640
4600 IF (Q$="CLEAR")OR(Q$="clear") THEN 4770:ELSE IF LEN(Q$)>4 THEN 4590
4610 IF (Q$="x")OR(Q$="X") THEN CV%=999:ELSE CV%=VAL(Q$)
4620 IF CON=1 THEN 4630:ELSE IF CV%=999 THEN 4730:ELSE 4590
4630 IF (CV%<1)OR(CV%>NG) THEN 4590:ELSE 4730
4640 LOCATE 13,30:INPUT Q$:IF LEN(Q$)=0 THEN 4710
4650 IF (Q$="CLEAR")OR(Q$="clear") THEN 4770:ELSE IF LEN(Q$)>4 THEN 4640
4660 IF (Q$="X")OR(Q$="x") THEN CV%=999:ELSE CV%=VAL(Q$)
4670 IF CON=1 THEN 4680:ELSE IF CV%=999 THEN 4690:ELSE 4640
4680 IF (CV%<1)OR(CV%>NG) THEN 4640
4690 CV%=-CV%:GOTO 4730
4710 IF FST=1 THEN 4540:ELSE 4740
4730 PK%(PI%,QG)=CV%:CHNG=1
4740 FOR QC=1 TO QG-1:IF (ABS(PK%(PI%,QC))=ABS(PK%(PI%,QG)))AND(CON=1) THEN 4590:ELSE NEXT QC
4750 NEXT QG
4760 MSG$="Update complete.":GOLDTOP=-1:RETURN
4770 FOR QG=1 TO NG:PK%(PI%,QG)=0:NEXT QG:CHNG=1
4780 MSG$="Picks cleared.":GOLDTOP=-1:RETURN
4800 CLS:PRINT" Prints Players Picks":PRINT
4810 PRINT"Please enter the number of copies,"
4820 PRINT"Or press enter to cancel."
4830 LOCATE 5,1:INPUT C$:COP%=VAL(C$):IF COP%=0 THEN 5290:ELSE IF COP%<0 THEN 4830
4840 PRINT:PRINT"Hit P when printer is ready,":PRINT"Or press enter to cancel"
4850 C$=INKEY$:IF (C$="Q")OR(C$="q") THEN 5290:ELSE IF (C$<>"P")AND(C$<>"p") THEN 4850
4860 FOR W=1 TO COP%
4870 PPOS=1
4880 WHILE PPOS<=NP
4890 PEND=PPOS+15:IF PEND>NP THEN PEND=NP
4900 LPRINT:LPRINT:LPRINT
4910 FOR MC=10 TO 1 STEP -1
4920 FOR TB=PPOS TO PEND
4930 IF MID$(NM$(TB),MC,1)<>" " THEN 4960
4940 NEXT TB
4950 NEXT MC
4960 IF MC=0 THEN MC=1
4970 FOR QP=1 TO MC
4980 LPRINT TAB(30);
4990 FOR TB=PPOS TO PEND
5000 LPRINT"| ";MID$(NM$(TB),QP,1);
5010 NEXT TB
5020 LPRINT
5030 NEXT QP:LPC=MC+3
5040 FOR QP=1 TO NG
5050 LPC=LPC+3
5060 LPRINT "*****************************";
5070 FOR TB=PPOS TO PEND:LPRINT"|**";:NEXT TB:LPRINT
5080 LPRINT USING "##";QP;:LPRINT ".";RIGHT$(TEAM$(GM%(1,QP)),20);
5090 IF LIN$="Y" THEN IF GM%(5,QP)>0 THEN LPRINT USING "+##.#";GM%(5,QP)/10;
5100 LPRINT TAB(30);
5110 FOR TB=PPOS TO PEND
5120 PICK%=PK%(TB,QP)
5130 IF PICK%<=0 THEN LPRINT"| ";:GOTO 5150
5140 IF PICK%=999 THEN LPRINT"| X";:ELSE LPRINT USING "|##";PICK%;
5150 NEXT TB:LPRINT
5160 LPRINT" ";RIGHT$(TEAM$(GM%(2,QP)),20);
5170 IF LIN$="Y" THEN IF GM%(5,QP)<0 THEN LPRINT USING "+##.#";-GM%(5,QP)/10;
5180 LPRINT TAB(30);
5190 FOR TB=PPOS TO PEND
5200 PICK%=PK%(TB,QP)
5210 IF PICK%=>0 THEN LPRINT"| ";:GOTO 5230
5220 IF PICK%=-999 THEN LPRINT"| X";:ELSE LPRINT USING "|##";-PICK%;
5230 NEXT TB:LPRINT
5240 NEXT QP
5250 PPOS=PPOS+16
5260 NLL=LPL-(LPC MOD LPL):FOR ZQ4=1 TO NLL:LPRINT:NEXT ZQ4
5270 WEND
5280 NEXT
5290 GOLDTOP=-1:RETURN
6000 REM wkmaint program pc-pooler:weekly game maintenance lines/scores
6040 CHNG=0:GOSUB 6270
6050 IF CHNG=0 THEN 6200
6060 REM update games, wkgames files
6070 P=1:Q=NG2
6100 FOR J=1 TO NG
6120 FOUND=0
6130 WHILE (P<=Q)AND(FOUND=0)
6140 IF (DT$(J)<>DT2$(P))OR(GM%(1,J)<>GM2%(1,P))OR(GM%(2,J)<>GM2%(2,P)) THEN 6150:ELSE GM2%(3,P)=GM%(3,J):GM2%(4,P)=GM%(4,J):GM2%(5,P)=GM%(5,J):FOUND=1:WRG=1
6620 IF GM%(3,GD%)=-1 THEN PRINT" ";:ELSE PRINT USING "#### ";GM%(3,GD%);
6630 IF LPTS>0 THEN PRINT USING "+##.#";LPTS;
6640 LOCATE 25,1:PRINT LEFT$(BLNK$,39);:LOCATE 25,1:PRINT USING "####";GD%;:PRINT ". ";VS$;
6650 IF GM%(4,GD%)=-1 THEN PRINT" ";:ELSE PRINT USING "#### ";GM%(4,GD%);
6660 IF LPTS<0 THEN PRINT USING "+##.#";-LPTS;
6670 CHNG2=0
6680 LOCATE 23,1:PRINT LEFT$(BLNK$,39);:LOCATE 23,1:PRINT"Enter home score===>";:INPUT C$:IF (LEN(C$)=0)OR(VAL(C$)<0) THEN 6690:ELSE GM%(3,GD%)=VAL(C$):CHNG2=1
6690 LOCATE 23,1:PRINT LEFT$(BLNK$,39);:LOCATE 23,1:PRINT"Enter visitor score===>";:INPUT C$:IF (LEN(C$)=0)OR(VAL(C$)<0) THEN IF CHNG2=0 THEN 6710: ELSE 6690
6700 GM%(4,GD%)=VAL(C$):CHNG2=1
6710 IF CHNG2=1 THEN MSG$="Score changed.":GOLDTOP=-1:CHNG=1:GTOP=GD%:ELSE MSG$="Score unchanged."
6720 RETURN
6730 MSG$="Scoring cancelled.":RETURN
6740 CLS:PRINT" Help Information":PRINT" Weekly Game Maintenance.":PRINT
6741 RINT"This module is used to maintain the":PRINT"weekly game file.":PRINT"You may enter scores or lines.":PRINT"The data is passed to the master file.":PRINT
6750 PRINT"Briefly, F6 is used to enter a line.":PRINT"You will be prompted for the game":PRINT"number and then who is favored to win":PRINT"and by how much.":PRINT
6760 PRINT"F7 is used to enter a score.":PRINT"You will be prompted for the game":PRINT"number and then the home and visiting":PRINT"scores. Just hitting Enter will bypass":PRINT"an item.":PRINT
6770 PRINT"F8 displays this help screen,":PRINT"while F9 and F10 are used to move":PRINT"backward and forward. When you are done":PRINT"with changes, F1 will take you back":PRINT"to the main menu.";
6780 GOSUB 2370:GOLDTOP=-1:RETURN
6790 LOCATE 22,15:PRINT"Update a line.";
6800 LOCATE 25,1:PRINT LEFT$(BLNK$,39);:LOCATE 25,1:PRINT"(Just ENTER to cancel.)";